<%= link_to 'Random Media', {:controller => '/media', :action => 'random'}, {:class => 'toplevel'} %>
<%= link_to 'Browse Media', {:controller => '/media', :action => 'list'}, {:class => 'toplevel'} %>
<!--[if !IE]><!-->
<div class="menudiv">
<ul id="item1">
  <li class="topmenu"><%= link_to 'Categories', :controller => 'media', :action => 'list' %></li>
  <% Category.find(:all).each do |category| %>
  <li class="item"><%= link_to category.name, :controller => 'media', :action => 'list', :category => category.id, :permalink => category.permalink %></li>
  <% end %>
</ul>
</div>
<!--<![endif]-->